package CONCATENAR;
import javax.swing.JOptionPane;

public class concatenar {

	public static void main(String[] args){
		int i=0;
		int j=0;
		int k=0;
		
	
		

	
		int T = Integer.parseInt(JOptionPane.showInputDialog(null,"ingrese el numero de casos"));

	
		do{
			int m= Integer.parseInt(JOptionPane.showInputDialog(null,"ingrese M"));
			int n= Integer.parseInt(JOptionPane.showInputDialog(null,"ingrese N"));
			     do{ String cadenaPrimerLenguaje= JOptionPane.showInputDialog(null,"ingrese palabra caadena m");
			    	 j++;
			     }while(j<m);
			     	
			     do{ String cadenaSugundoLenguaje= JOptionPane.showInputDialog("ingrese palabra canena n");
			    	 k++;
			     }while(k<n);
			i++;
			System.out.println("case"+i+":"+(m*n));
			
		}while(i<T);
		
}
}